#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtWidgets>

namespace Ui {
class MainWindow;
}

struct LogInfo{
    int id;
    QString hash;
    QString desc;
    QStringList files;
    bool isBreak = false;
    static QString toString(const QList<LogInfo> &list0);
    static QString toString(const LogInfo &l);
};

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    static bool listContain(const QStringList &p1, const QStringList &p2);
private slots:
    void on_pushButton_getList_clicked();

    void on_pushButton_getChangeFiles_clicked();

    void on_pushButton_sort_clicked();

private:
    Ui::MainWindow *ui;

    QList<LogInfo> logInfoList;
};

#endif // MAINWINDOW_H
